#pragma once
#include "Component.h"
#include "Fysics/Physics/CollideSys/Collider.h"

namespace Fysics
{
	class ColliderComponent : public IComponent
	{
	private:
		std::vector<ICollider*> m_Colliders;
		bool m_StopWhenSuccess;

	public:
		ColliderComponent(Object* parent, bool stopWhenSuccess = true);
		virtual ~ColliderComponent();

		size_t GetCount() const { return m_Colliders.size(); }
		ICollider* GetCollider(unsigned int index) const;
	};
}